﻿/**
 * <p>Copyright (c) 2016 深圳市鹏途交通科技有限公司</p>
 * <p>					All right reserved. 		 </p>
 * <p>项目名称 ： 	深圳公路信息资源整合及国省检日常化监管管理项目        </p>
 * <p>创建者   :	wy
 * <p>描   述  :  A3-01基础建设经费管理  </p>
 * <p>最后修改 :  $: 2017-4-18-下午4:50:01	wy   $     </p>
 * 
 */

package com.pengtu.gsj.entity.lzgl;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

@Entity
@Table(name = "T_LZ_BUDGET")
public class Budget extends IdEntity {

	private static final long serialVersionUID = -6429870906188976336L;

	private String year; // 年份

	private Double budgetary; // 市预算经费

	private Integer personCount; // 核定人数

	private Double budgetPrice; // 预算单价

	private Integer carCount; // 路政车辆数

	private Double highwayMileage; // 管辖普通国省道里程数

	private String remark; // 备注
	
	private Double budgetPro;		//省预算经费
	
	private Double budgetCou;		//县预算经费
	
	private String institutions;	//机构
	
	private String ifInto;	//路政执法工作经费是否纳入财政预算管理
	
	private Integer actRoadPeo; //实际省级公路路政核定人数
	
	private Double actRoadBudget; //实际省级公路路政核定预算
	
	private Integer actComPeo; //实际省级交通综合执法核定人数
	
	private Double actComBudget; //实际省级交通综合执法核定预算
	
	
	
	private Integer bulletinNumber;     //检测文件数
	private List<Attachment> attachments;

	public Budget() {
	}

	@Column(name = "YEAR")
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	@Column(name = "BUDGETARY")
	public Double getBudgetary() {
		return budgetary;
	}

	public void setBudgetary(Double budgetary) {
		this.budgetary = budgetary;
	}

	@Column(name = "PERSONCOUNT")
	public Integer getPersonCount() {
		return personCount;
	}

	public void setPersonCount(Integer personCount) {
		this.personCount = personCount;
	}

	@Column(name = "BUDGETPRICE")
	public Double getBudgetPrice() {
		return budgetPrice;
	}

	public void setBudgetPrice(Double budgetPrice) {
		this.budgetPrice = budgetPrice;
	}

	@Column(name = "CARCOUNT")
	public Integer getCarCount() {
		return carCount;
	}

	public void setCarCount(Integer carCount) {
		this.carCount = carCount;
	}

	@Column(name = "HIGHWAYMILEAGE")
	public Double getHighwayMileage() {
		return highwayMileage;
	}

	public void setHighwayMileage(Double highwayMileage) {
		this.highwayMileage = highwayMileage;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "BUDGETPRO")
	public Double getBudgetPro() {
		return budgetPro;
	}

	public void setBudgetPro(Double budgetPro) {
		this.budgetPro = budgetPro;
	}
	
	@Column(name = "BUDGETCOU")
	public Double getBudgetCou() {
		return budgetCou;
	}

	public void setBudgetCou(Double budgetCou) {
		this.budgetCou = budgetCou;
	}
	
	@Column(name = "INSTITUTIONS")
	public String getInstitutions() {
		return institutions;
	}

	public void setInstitutions(String institutions) {
		this.institutions = institutions;
	}

	@Column(name = "IFINTO")
	public String getIfInto() {
		return ifInto;
	}

	public void setIfInto(String ifInto) {
		this.ifInto = ifInto;
	}

	
	@Column(name = "ACTROADPEO")
	public Integer getActRoadPeo() {
		return actRoadPeo;
	}

	public void setActRoadPeo(Integer actRoadPeo) {
		this.actRoadPeo = actRoadPeo;
	}

	
	@Column(name = "ACTROADBUDGET")
	public Double getActRoadBudget() {
		return actRoadBudget;
	}

	public void setActRoadBudget(Double actRoadBudget) {
		this.actRoadBudget = actRoadBudget;
	}

	
	@Column(name = "ACTCOMPEO")
	public Integer getActComPeo() {
		return actComPeo;
	}

	public void setActComPeo(Integer actComPeo) {
		this.actComPeo = actComPeo;
	}

	
	@Column(name = "ACTCOMBUDGET")
	public Double getActComBudget() {
		return actComBudget;
	}

	public void setActComBudget(Double actComBudget) {
		this.actComBudget = actComBudget;
	}

	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
}
